<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-28 16:00:03
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-04-13 17:08:05
 */


use yii\widgets\Breadcrumbs;
use diandi\adminlte\Alert;
use richardfan\widget\JSRegister;

?>
<section class="content-header">
    <a href="javascript:window.location.reload()" class="rfHeaderFont">
        <i class="glyphicon glyphicon-refresh"></i> 刷新
    </a>
    <a href="javascript:history.go(-1)" class="backMenu" style="display: none;">
        <i class="fa fa-mail-reply"></i> 返回
    </a>
    <ol class="breadcrumb">
        <li><a href="/backend/"><i class="fa fa-dashboard"></i><?= $this->title ?></a></li>
        <li class="active">首页</li>
    </ol>
</section>

<section class="content">
<?= Alert::widget(); ?>

    <?= $content; ?>
</section>
<?php JSRegister::begin([
    'id' => '1'
]) ?>
<script>
    var parentPageid = $(window.parent.document).find(".tab-pane.active").data('pageid');
    var src = $(window.parent.document).find("#iframe_" + parentPageid).attr('src');

    if (window.location.pathname != src) {
        $('.backMenu').show();
    }
</script>
<?= JSRegister::end(); ?>